<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- 
    v-bind  动态设置标签属性:src,url,titel
     语法：v-bind:属性名="表达式"
    -->
    <div id="div">
        <img v-bind:src="img" v-bind:title="msg" alt="">
        <!-- v-bind:src可以省写为:src -->
        <img :src="img" :title="msg" alt="">
    </div>



</body>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
    const app = new Vue({
        el: '#div',
        data: {
            msg: "图片",
            img: "https://search-operate.cdn.bcebos.com/7e85570b817e17e8f3ae93134cc78451.gif"
        },
    })
</script>

</html>